home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / dfpp01.zip / FRAME.H < prev    next >
C/C++ Source or Header  |  1992-11-21  |  677b  |  33 lines

  1. // -------- frame.h 
  2.  
  3. #ifndef FRAME_H
  4. #define FRAME_H
  5.  
  6. #include "dfwindow.h"
  7.  
  8. class Frame : public DFWindow    {
  9.     int diff;            // difference between mouse x and window corner
  10.     int minx, maxx;        // x limits
  11.     int miny, maxy;        // y limits
  12.     Bool moving;        // True = moving, False = sizing
  13.     void SetColors();
  14. public:
  15.     Frame(DFWindow *par, int mx = -1);
  16.     // -------- Frame API messages
  17.     void Paint() {}
  18.     void LeftButton(int mx, int my);
  19.     void ButtonReleased(int mx, int my);
  20.     void MouseMoved(int mx, int my);
  21.     void Show();
  22.     void Hide();
  23.     virtual void Keyboard(int key);
  24.     void CloseFrame(int lf, int tp, int rt, int bt);
  25.     void DestroyFrame();
  26. };
  27.  
  28. #endif
  29.  
  30.  
  31.  
  32.  
  33.